package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbTeam entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_TEAM", schema = "dbo", catalog = "AGDB")
public class TbTeam implements java.io.Serializable {

	// Fields

	private String teamId;
	private TbType tbType;
	private String teamName;
	private String teamDuty;
	private Integer teamScale;
	private String teamDepartment;
	private String teamLocation;
	private String teamContact;
	private String teamTel;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbTeam() {
	}

	/** minimal constructor */
	public TbTeam(String teamId, TbType tbType, String teamName,
			String teamDuty, Integer teamScale, String teamDepartment,
			String teamLocation) {
		this.teamId = teamId;
		this.tbType = tbType;
		this.teamName = teamName;
		this.teamDuty = teamDuty;
		this.teamScale = teamScale;
		this.teamDepartment = teamDepartment;
		this.teamLocation = teamLocation;
	}

	/** full constructor */
	public TbTeam(String teamId, TbType tbType, String teamName,
			String teamDuty, Integer teamScale, String teamDepartment,
			String teamLocation, String teamContact, String teamTel, String a,
			String b, String c) {
		this.teamId = teamId;
		this.tbType = tbType;
		this.teamName = teamName;
		this.teamDuty = teamDuty;
		this.teamScale = teamScale;
		this.teamDepartment = teamDepartment;
		this.teamLocation = teamLocation;
		this.teamContact = teamContact;
		this.teamTel = teamTel;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "TEAM_ID", unique = true, nullable = false, length = 10)
	public String getTeamId() {
		return this.teamId;
	}

	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "TPYE_ID", nullable = false)
	public TbType getTbType() {
		return this.tbType;
	}

	public void setTbType(TbType tbType) {
		this.tbType = tbType;
	}

	@Column(name = "TEAM_NAME", nullable = false, length = 200)
	public String getTeamName() {
		return this.teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	@Column(name = "TEAM_DUTY", nullable = false, length = 500)
	public String getTeamDuty() {
		return this.teamDuty;
	}

	public void setTeamDuty(String teamDuty) {
		this.teamDuty = teamDuty;
	}

	@Column(name = "TEAM_SCALE", nullable = false)
	public Integer getTeamScale() {
		return this.teamScale;
	}

	public void setTeamScale(Integer teamScale) {
		this.teamScale = teamScale;
	}

	@Column(name = "TEAM_DEPARTMENT", nullable = false, length = 100)
	public String getTeamDepartment() {
		return this.teamDepartment;
	}

	public void setTeamDepartment(String teamDepartment) {
		this.teamDepartment = teamDepartment;
	}

	@Column(name = "TEAM_LOCATION", nullable = false, length = 100)
	public String getTeamLocation() {
		return this.teamLocation;
	}

	public void setTeamLocation(String teamLocation) {
		this.teamLocation = teamLocation;
	}

	@Column(name = "TEAM_CONTACT", length = 50)
	public String getTeamContact() {
		return this.teamContact;
	}

	public void setTeamContact(String teamContact) {
		this.teamContact = teamContact;
	}

	@Column(name = "TEAM_TEL", length = 20)
	public String getTeamTel() {
		return this.teamTel;
	}

	public void setTeamTel(String teamTel) {
		this.teamTel = teamTel;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}